package com.kaishengit.service;

import java.util.List;

import com.kaishengit.dao.ContactsDao;
import com.kaishengit.pojo.Contacts;

public class ContactsService {

 ContactsDao contactsDao;
	
	
	public List<Contacts> FindAll(){
		List contactsList=contactsDao.findAll();
		return  contactsList;
	}
	public List<Contacts> findAllcontacts(){
		String hql="select from t_contacts where companyname=?";
		 List allcontacts=contactsDao.find(hql, "");
		 return allcontacts;
	}
	
	//set get
	public ContactsDao getContactsDao() {
		return contactsDao;
	}
	public void setContactsDao(ContactsDao contactsDao) {
		this.contactsDao = contactsDao;
	}
	
	
}
